<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改api手动推送记录')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-record-edit" th:object="${formInfoPushRecord}">
            <input name="id" th:field="*{id}" type="hidden">

            <div class="form-group">
                <label class="col-sm-3 control-label is-required">执行日期：</label>
                <div class="col-sm-8">
                    <input name="execDate" id="execDate" th:field="*{execDate}" class="form-control" readonly type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">执行时间：</label>
                <div class="col-sm-8" id="execTime">
                    <div class="col-sm-6">
                        <input name="execStartTime" id="execStartTime" th:field="*{execStartTime}" class="form-control" readonly type="text" required>
                    </div>
                    <div class="col-sm-6">
                        <input name="execEndTime" id="execEndTime" th:field="*{execEndTime}" class="form-control" readonly type="text" required>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label is-required">机构信息：</label>
                <div class="col-sm-8">
                        <input name="dataName" id="dataName" th:field="*{dataName}" class="form-control" readonly type="text" required>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label is-required">数据时间范围：</label>
                <div class="col-sm-8" id="datetime">
                    <div class="col-sm-6">
                        <input name="starttime" id="starttime" th:field="*{starttime}" class="form-control" readonly type="text" required>
                    </div>
                    <div class="col-sm-6">
                        <input name="endtime" id="endtime" th:field="*{endtime}" class="form-control" readonly type="text" required>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label is-required">推送时间间隔（秒）：</label>
                <div class="col-sm-8">
                    <select name="pushSpace" th:field="*{pushSpace}" class="form-control" >
                        <option value="10">10</option>
                        <option value="20">20</option>
                        <option value="30">30</option>
                        <option value="40">40</option>
                        <option value="50">50</option>
                        <option value="60">60</option>
                    </select>
                </div>
            </div>

            <div class="form-group" >
                <label class="col-sm-3 control-label" >芝麻分:</label>
                <div class="col-sm-8">
                    <label class="check-box" th:each="item:${dataMapList}">
                        <input type="checkbox" lay-skin="primary" name="filterZhima" th:value="${item.value}" th:checked="${item.checked}" th:text="${item.name}" >
                    </label>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "form/record";
        $("#form-record-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-record-edit').serialize());
            }
        }
    </script>
</body>
</html>